package com.carl.lambda.simpleLambda.lambda1;


/**
 * 按年龄过滤
 */
public class FilterEmployeeByAge implements MyPredicate<Employee>{

    @Override
    public boolean test(Employee employee) {
        return employee.getAge() >= 35;
    }
}
